import Vue from 'vue'
import Router from 'vue-router'
import index from '../components/index'
import userList from '../components/userList'
import qrCode from '../components/qrCode'
import setting from '../components/setting'
import order from '../components/order'
import orderDetail from '../components/orderDetail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/userList',
      name: 'userList',
      component: userList
    },
    {
      path: '/qrCode',
      name: 'qrCode',
      component: qrCode
    },
    {
      path: '/setting',
      name: 'setting',
      component: setting
    },
    {
      path: '/order',
      name: 'order',
      component: order
    },
    {
      path: '/orderDetail',
      name: 'orderDetail',
      component: orderDetail
    }
  ]
})
